import { Container } from "@chakra-ui/react";
import NodeCard from "./render/NodeCard";
import IOTitle from "./components/IOTitle";
import { Handle, Position } from 'reactflow';
import RenderInput from "./render/RenderInput";
import RenderOutput from "./render/RenderOutput";


const NodeStart = ({data,selected}:any)=>{
    const {nodeId,outputs} = data;
    console.log('NodeStart',data,selected)
    return (
        <NodeCard minW={'240px'} selected={selected} {...data}  menuForbid={{
            rename: false,
            copy: false,
            delete: false
          }}>
            <Container>
                <IOTitle text="输出"></IOTitle>
                <RenderOutput nodeId={nodeId} flowOutputList={outputs} ></RenderOutput>
            </Container>
        </NodeCard>
    )
}

export default NodeStart